package com.mnjpcorp.shopping.dbpm;

import javax.sql.DataSource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ibatis.sqlmap.client.SqlMapClient;

/**
 * @author nhn
 *
 */
public class DataSourceSupport {

	protected static final Log LOG = LogFactory.getLog(DataSourceSupport.class);

	private SqlMapClient sqlMapClient;

	private DataSource dataSource;

	public SqlMapClient getSqlMapClient() {
		return sqlMapClient;
	}

	public void setSqlMapClient(SqlMapClient sqlMapClient) {
		this.dataSource = sqlMapClient.getDataSource(); // dataSource set

		this.sqlMapClient = sqlMapClient;
	}

	public DataSource getDataSource() {
		return dataSource;
	}

	public void setDataSource(DataSource dataSource) {
		this.dataSource = dataSource;
	}

}
